local tiaoxi = fk.CreateSkill {
  name = "th_tiaoxi",
  max_phase_use_time = 2,
}

tiaoxi:addEffect("active", {
  anim_type = "control",
  prompt = "#th_tiaoxi",
  card_num = 0,
  card_filter = Util.FalseFunc,
  target_num = 1,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and to_select ~= player and not to_select:isAllNude()
  end,
  on_use = function(self, room, effect)
    local from = effect.from
    local to = effect.tos[1]
    local id = room:askToChooseCard(from, {
      target = to,
      flag = "hej",
      skill_name = tiaoxi.name
    })
    room:obtainCard(from, id, false, fk.ReasonPrey)
    to:drawCards(1, tiaoxi.name)
  end
}, { check_skill_limit = true })

Fk:loadTranslationTable{
  ["th_tiaoxi"] = "跳袭",
  [":th_tiaoxi"] = "出牌阶段限两次，你可以获得一名其他角色区域内一张牌，然后其摸一张牌。",
  ["#th_tiaoxi"] = "跳袭：获得一名其他角色区域内一张牌，然后其摸一张牌",
}

return tiaoxi